import request from "@/utils/request";
// 角色权限
export function getRoleAuth(params) {
  return request({
    url: "/api/role/auth",
    method: "get",
    params: params
  });
}
// 角色列表
export function getRoleList() {
  return request({
    url: "/api/role/index",
    method: "get",
  });
}
//分配权限
export function roleAuthEdit(data) {
  return request({
    url: "/api/role/edit_auth",
    method: "post",
    data
  });
}
// 编辑账号
export function roleEdit(data) {
  return request({
    url: "/api/role/edit",
    method: "post",
    data
  });
}
// 创建角色
export function roleAdd(data) {
  return request({
    url: "/api/role/add",
    method: "post",
    data
  });
}

